package com.xiaomo.gitee.datamanager.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serial;
import java.io.Serializable;

import io.swagger.v3.oas.annotations.Hidden;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @TableName category_tag
 */
@TableName(value ="category_tag")
@Data
@NoArgsConstructor
public class CategoryTag implements Serializable {

    @TableField("child_class_id")
    private Long childClassId;

    @TableField("tag_id")
    private Long tagId;

    @Serial
    private static final long serialVersionUID = 1L;

    public CategoryTag(Long childClassId, Long tagId) {
        this.childClassId = childClassId;
        this.tagId = tagId;
    }
}